package com.prs.crm.domain.hr;

import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;


@Entity
@Table(name = "hr_salary_item")
public class SalaryItem extends BaseEntity {
	
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer Id;
	private String name;
	
	@OneToMany(fetch = FetchType.LAZY, mappedBy = "salaryItem")
	private Set<SalaryRelat> relats;
	
	private String type;
	@Column(length = 5000)
	private String remark;
   
	public Integer getId() {
		return Id;
	}

	public void setId(Integer id) {
		Id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public void setRelats(Set<SalaryRelat> relats) {
		this.relats = relats;
	}

	public Set<SalaryRelat> getRelats() {
		return relats;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getType() {
		return type;
	}

}
